<?php
class Student extends CI_Controller{
	function __construct(){
		parent::__construct();
		$this->load->model('student_m','student');
		$this->load->library('result');
	}
	
	function get(){
		$data=array();
		$res=$this->student->query($data);
		if(!empty($res)){
			$this->result->setData(0,'成功',$res);
		}else{
			$this->result->setData(1,'失败',null);
		}
		$this->result->output();
	}
}
?>
